/*
 * @(#)CommodityLog.java
 *
 * Copyright 2011 Xinhua Online, Inc. All rights reserved.
 */

package com.winxuan.channel.model.commodity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 日志
 * @author  HideHai
 * @version 1.0,2011-6-9
 */
@Entity
@Table(name="executelog")
public class CommodityLog implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 336717933141489745L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	@Column(name = "distribute")
	private Integer distribute;
	@Column(name = "commodity")
	private Integer commodity;
	@Column(name = "isadd")
	private boolean add;
	@Column(name = "isonshelf")
	private boolean onshelf;
	@Column(name = "isoffshelf")
	private boolean offshelf;
	@Column(name = "isupdatename")
	private boolean updatename;
	@Column(name = "isupdateprice")
	private boolean updateprice;
	@Column(name = "isupdatestock")
	private boolean updatestock;
	@Column(name = "isupdatecovers")
	private boolean updatecovers;
	@Column(name = "isupdatedescription")
	private boolean updatedescription;
	@Column(name = "executetime")
	private Date executetime;
	@Column(name = "success")
	private boolean success;
	@Column(name = "errormessage")
	private String errorMessage;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getDistribute() {
		return distribute;
	}
	public void setDistribute(Integer distribute) {
		this.distribute = distribute;
	}
	public Integer getCommodity() {
		return commodity;
	}
	public void setCommodity(Integer commodity) {
		this.commodity = commodity;
	}
	public boolean isAdd() {
		return add;
	}
	public void setAdd(boolean add) {
		this.add = add;
	}
	public boolean isOnshelf() {
		return onshelf;
	}
	public void setOnshelf(boolean onshelf) {
		this.onshelf = onshelf;
	}
	public boolean isOffshelf() {
		return offshelf;
	}
	public void setOffshelf(boolean offshelf) {
		this.offshelf = offshelf;
	}
	public boolean isUpdatename() {
		return updatename;
	}
	public void setUpdatename(boolean updatename) {
		this.updatename = updatename;
	}
	public boolean isUpdateprice() {
		return updateprice;
	}
	public void setUpdateprice(boolean updateprice) {
		this.updateprice = updateprice;
	}
	public boolean isUpdatestock() {
		return updatestock;
	}
	public void setUpdatestock(boolean updatestock) {
		this.updatestock = updatestock;
	}
	public boolean isUpdatecovers() {
		return updatecovers;
	}
	public void setUpdatecovers(boolean updatecovers) {
		this.updatecovers = updatecovers;
	}
	public boolean isUpdatedescription() {
		return updatedescription;
	}
	public void setUpdatedescription(boolean updatedescription) {
		this.updatedescription = updatedescription;
	}
	public Date getExecutetime() {
		return executetime;
	}
	public void setExecutetime(Date executetime) {
		this.executetime = executetime;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}

